package com.huike.pmps.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 〈用户实体〉
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("es_member")
public class Member {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("用户账号")
    private String memberName;
    @ApiModelProperty("用户密码")
    private String password;
    @ApiModelProperty("真实姓名")
    private String name;
    @ApiModelProperty("用户手机号")
    private String mobile;
    @ApiModelProperty("用户邮箱")
    private String email;
    @ApiModelProperty("用户性别")
    private Short sex;
    @ApiModelProperty("战区ID")
    private Integer regionId;
    @ApiModelProperty( "战区名字")
    private String regionName;
    @ApiModelProperty("省份ID")
    private Integer provinceId;
    @ApiModelProperty("省份名字")
    private String provinceName;
    @ApiModelProperty("用户状态(0 锁定  1启用)")
    private Short state;//状态 0 锁定  1启用

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(exist = false)
    private List<Role> roles;

    @TableField(exist = false)
    private List<Integer> rolesIds;

    @TableField(exist = false)
    private Object menus;
}


